package patterns;
public class StringBuilderTest {
    public static void main(String[] args) {
        String name = "Mike";
        int age = 45;
        StringBuilder builder = new StringBuilder(64);
        builder.append("Person[");
        builder.append("name=");
        builder.append(name);
        builder.append(", age=");
        builder.append(age);
        builder.append("]");
        String str = builder.toString();
        System.out.println(str);
    }
}
